﻿using System.Diagnostics;

namespace DefenderUI
{
    /// <summary>
    /// A data-holding class (model) for storing detailed information about a process.
    /// This is used to decouple the raw Process object from the UI ListView.
    /// </summary>
    public class ProcessInfo
    {
        public int Id { get; }
        public string Name { get; }
        public string Owner { get; set; } = "Loading..."; // Default text while details are being fetched
        public string Memory { get; set; } = "Loading...";
        public string FullPath { get; set; } = "Loading...";
        public ProcessPriorityClass Priority { get; set; }

        public ProcessInfo(Process process)
        {
            Id = process.Id;
            Name = process.ProcessName;
        }
    }
}